﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

public partial class FlightList : System.Web.UI.Page
{
    tblTicket data = new tblTicket();
    protected void Page_Load(object sender, EventArgs e)
    {
        string ngaydi = Request.QueryString["ngaydi"];
        string ngayve = Request.QueryString["ngayve"];
        string diemdi = Request.QueryString["diemdi"];
        string diemden = Request.QueryString["diemden"];
        int nguoilon = Convert.ToInt32(Request.QueryString["nguoilon"]);
        int treem = Convert.ToInt32(Request.QueryString["treem"]);
        int sosinh = Convert.ToInt32(Request.QueryString["sosinh"]);

        DataTable db = data.getallflightbyCodeStart(diemden);
        lbldiemdi.Text = db.Rows[0]["AirportStart"].ToString();
        lbldiemden.Text = db.Rows[0]["AirportEnd"].ToString();


    }



}